package com.saint.farmshop.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 用于接收用户的Entity
 *
 * @author Saint
 * @date 2022/05/21
 */

@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Data
public class User implements Serializable {

    @Id
    private String id;

    private String openId;

    private LocalDate birthDay;

    private String userName;

    private String headImg;

    private String userIntroduce;

    private LocalDateTime lastLoginTime;

    private String phoneNumber;

    private String email;

    private String realName;

    private Integer sex;

    private Integer status;

    private List<Address> address;
}
